package cn.achao.csr.base.constant;

/**
 * @Author: achao
 **/
public class AliConstants {

    /**
     * 沙箱环境
     */
    public static final String SANDBOX = "sandbox";

    public static final String AUTH_USER = "auth_user";
    public static final String AUTH_BASE = "auth_base";

    /**
     * 回调模式
     * 1：登录
     * 2：授权
     */
    public static final String MODEL_LOGIN = "1";
    public static final String MODEL_AUTH = "2";


    /**
     * grant_type｜授权方式
     * 用授权码来换取授权令牌: authorization_code
     * 用刷新令牌来换取一个新的授权令牌: refresh_token
     */
    public static final String AUTHORIZATION_CODE = "authorization_code";
    public static final String REFRESH_TOKEN = "refresh_token";

}
